package com.iwhalecloud.bss.kite.cucc.client.api.order;

import com.github.pagehelper.PageInfo;
import com.iwhalecloud.bss.kite.client.vo.scene.CommonAttrVO;
import com.iwhalecloud.bss.kite.cucc.client.dto.pos.KitePosDTO;
import com.iwhalecloud.bss.kite.cucc.client.vo.order.PropertyValueVO;
import com.ztesoft.bss.common.bo.LoginInfo;

import java.util.List;
import java.util.Map;

/**
 * @author huanghaosheng
 * @version 1.0
 */
public interface ICommonSevice {

    void initCommonAttrValues(String sceneInstId, String serviceOfferId, String custId, KitePosDTO kitePosDTO, LoginInfo loginInfo);

    void setCommonAttrValue(String sceneInstId, String fieldName, String value, String valueDesc, String originValue);

    List<Map<String, Object>> queryHandlerInfos(Map<String, Object> map);

    Map<String, Object> queryHandlerFile(String fileKey);

    List<CommonAttrVO> saveHandlerInfos(Map<String, Object> resultMap, String sceneInstId);

    void saveHandlerValue(String sceneInstId, String fieldName, String value, String valueDesc,
                          String moduleId);

    PageInfo<Map<String, Object>> queryOppoInfos(Map<String, Object> map);

    PageInfo<PropertyValueVO> queryValueList(Map<String, Object> map);
    void insertValueList(Map<String, Object> map);
    void commitValueList(Map<String, Object> map);
}
